<div class="zs-body" data-ng-init="formInit('gzvisitorreception', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzvisitorreception');setConHei();">
	<div class="zs-map-tool">
		<div class="location">
			<a href="javascript:;">首页</a>
			<i class="right-arr"></i>
			<a href="javascript:;">行政管理</a>
			<i class="right-arr"></i>
			<a href="javascript:;">访客接待管理</a>
		</div>
		<div class="option">
			<input type="button" class="zs-btn orange" value="新建" ng-click="addRow('gzvisitorreception') && openWindow('edit');" />
			<input type="button" class="zs-btn orange" value="编辑" ng-click="editRow('gzvisitorreception', gzvisitorreception.sRows[0]) && openWindow('edit')" />
			<input type="button" class="zs-btn orange" value="删除 " ng-click="delEntitys('gzvisitorreception')" />
		</div>
	</div>
	<div class="zs-content" style="position:unset">
		<div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">

				<span class="search-warpper">
					<i class="icon"></i>
					<input type="text" class="zs-input" placeholder="来访单位" ng-model="gzvisitorreception.queryObject['lfdw:like']" />
				</span>
				<!-- <span class="search-warpper">
					<i class="icon"></i>
					<input type="text" class="zs-input" placeholder="来访主题" ng-model="gzvisitorreception.queryObject['lfzt:like']" />
				</span> -->
				<span class="search-warpper" style="width: 65px;">接待部门
				</span>
				<span class="search-warpper">
				   <ag-Combobox class="zs-input" style="width:175px;height: 28px" 
				   		fn='dptidEdit'
				   		para="{ uDictionary:true,
				   				dictionary:'p_department',
				   				pidField:'pid',
				   				leafField:'leaf'}"
				   		ng-model="gzvisitorreception.queryObject['jdbmmc:=']"/>
				</span>
				<span class="search-warpper" style="width: 65px;">起止时间
				  </span>
				            	<span class="search-warpper"  style="width: 160px;">
				    <ag-Datebox 
				 		class="zs-input" style="width:155px;height: 28px"
				 		ng-model="gzvisitorreception.queryObject['dfsj:>=']" >
						</ag-Datebox>
				</span>-
				 <span class="search-warpper"  style="width: 160px;">
				    <ag-Datebox 
				 		class="zs-input" style="width:155px;height: 28px"
				 		ng-model="gzvisitorreception.queryObject['dfsj:<=']" >
						</ag-Datebox>
				 </span>
			</div>
			<div class="operation item" style="margin-top:7px;">
				<!--<a class="ope-1" ng-click="loadData('gzvisitorreception')"></a>
                <a class="ope-2"></a>-->
				<input type="button" class="zs-btn orange" value="查询" ng-click="loadData('gzvisitorreception')" />
			</div>
			<div class="switch">

			</div>
		</div>
		<div class="date-container">
			<div id="zpgwd">
				<div class="zs-data-table">
					<div class="container">
						<table>
							<thead>
								<tr>
									<th>
										<input id="allCheckbox" type="checkbox" ng-click="selectAll('gzvisitorreception','allCheckbox');" />
									</th>
									<!--<th>ID</th>-->
									<th>来访单位</th>
									<th>来访主题</th>
									<!--<th>来访人员</th>-->
									<th>来访人数(<span style="color:red;">本页总人数:{{gzvisitorreception.lfrsTotal}}</span>)</th>
									<th>到访时间</th>
									<!--<th>是否需要安排住宿</th>
									<th>男性人数</th>
									<th>女性人数</th>-->
									<th>到访结束时间</th>
									<!--<th>创建人ID</th>-->
									<th>领队联系电话</th>
									<!--<th>接待负责人ID</th>
									<th>接待负责人名称</th>
									<th>参与人</th>
									<th>接待部门ID</th>-->
									<th>接待部门名称</th>
									<!--<th>预约ID号</th>-->
								</tr>
							</thead>
							<tbody>
								<tr ng-repeat="r in gzvisitorreception.datas">
									<td>
										<input type="checkbox" ng-click="selectRow('gzvisitorreception',r);" ng-model="r.selected" />
									</td>
									<!--  ID -->
									<!--<td>
                                        <a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
									<!--  来访单位 -->
									<td>
										<a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
											<label ng-bind="r.lfdw"></label>
										</a>
									</td>
									<!--  来访主题 -->
									<td>
										<a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
											<label ng-bind="r.lfzt"></label>
										</a>
									</td>
									<!--  来访人员 -->
									<!--<td>
                                        <a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
                                            <label ng-bind="r.lfry"></label>
                                        </a>
                                   </td>-->
									<!--  来访人数 -->
									<td>
										<a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
											<label ng-bind="r.lfrs"></label>
										</a>
									</td>
									<!--  到访时间 -->
									<td>
										<a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
											<label ng-bind="r.dfsj | asDate | date:'yyyy-MM-dd'"></label>
										</a>
									</td>
									<!--  是否需要安排住宿 -->
									<!--<td>
                                        <a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
                                            <label ng-bind="r.sfxyapzs"></label>
                                        </a>
                                   </td>-->
									<!--  男性人数 -->
									<!--<td>
                                        <a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
                                            <label ng-bind="r.nxrs"></label>
                                        </a>
                                   </td>-->
									<!--  女性人数 -->
									<!--<td>
                                        <a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
                                            <label ng-bind="r.wxrs"></label>
                                        </a>
                                   </td>-->
									<!--  到访结束时间 -->
									<td>
										<a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
											<label ng-bind="r.dfjssj | asDate | date:'yyyy-MM-dd'"></label>
										</a>
									</td>
									<!--  创建人ID -->
									<!--<td>
                                        <a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
                                            <label ng-bind="r.crjid"></label>
                                        </a>
                                   </td>-->
									<!--  领队联系电话 -->
									<td>
										<a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
											<label ng-bind="r.tel"></label>
										</a>
									</td>
									<!--  接待负责人ID -->
									<!--<td>
                                        <a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
                                            <label ng-bind="r.jdfzrid"></label>
                                        </a>
                                   </td>-->
									<!--  接待负责人名称 -->
									<!--<td>
                                        <a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
                                            <label ng-bind="r.jdfzrmc"></label>
                                        </a>
                                   </td>-->
									<!--  参与人 -->
									<!--<td>
                                        <a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
                                            <label ng-bind="r.cyr"></label>
                                        </a>
                                   </td>-->
									<!--  接待部门ID -->
									<!--<td>
                                        <a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
                                            <label ng-bind="r.jdbmid"></label>
                                        </a>
                                   </td>-->
									<!--  接待部门名称 -->
									<td>
										<a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
											<label ng-bind="r.jdbmmcName"></label>
										</a>
									</td>
									<!--  预约ID号 -->
									<!--<td>
                                        <a ng-click="editRow('gzvisitorreception',r) && openWindow('edit');">
                                            <label ng-bind="r.yyid"></label>
                                        </a>
                                   </td>-->
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="zs-pagination-box">
					<ag-Page fn='gzvisitorreception'></ag-Page>
				</div>
			</div>
		</div>

		<div ag-Window id="edit" title="访问接待管理编辑" width='760px' height='620px'>
			<div class="zs-form-tab ibox">
				<form name="form" novalidate>
					<table width="100%">
						<tbody>
							<!--<tr>
                                <td class="text" width="20%">ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzvisitorreception.editRow.id" class="zs-input" />
                                </td>
                            </tr>-->
							<tr>
								<td class="text" width="20%">预约号</td>
								<td class="left" width="30%">
									<!-- <input readonly="true" type="text" ng-model="gzvisitorreception.editRow.yyid" class="zs-input" /> -->
									<label ng-bind="gzvisitorreception.editRow.yyid"></label>
								</td>
								<td class="left" width="50%" colspan="2">
									<input type="button" name="ok" value="选择预约" class="zs-btn c-green" ng-click="openWindow('chooseYYGL');" />
								</td>
							</tr>
							</tr>
							<tr>
								<td class="text" width="20%">
									<font color="red">*</font>来访单位
								</td>
								<td class="left" width="30%" colspan="3">
									<input type="text" ng-model="gzvisitorreception.editRow.lfdw" class="zs-input" />
									<span ng-show="false"><input hide-novalidate="true" alias="来访单位" required ng-model="gzvisitorreception.editRow.lfdw"
										 name="form_lfdw" /></span>
								</td>
							</tr>
							<tr>
								<td class="text" width="20%">
									<font color="red">*</font>来访主题
								</td>
								<td class="left" width="30%" colspan="3">
									<input type="text" ng-model="gzvisitorreception.editRow.lfzt" class="zs-input" />

									<span ng-show="false"><input hide-novalidate="true" alias="来访主题" required ng-model="gzvisitorreception.editRow.lfzt"
										 name="form_lfzt" /></span>
								</td>
							</tr>
							<tr>
								<td class="text" width="20%">
									<font color="red">*</font>到访时间
								</td>
								<td class="left" width="30%" colspan="3"><span>
										<ag-Datebox id='fi_dfsj' showcurday='gzvisitorreception.editRow.FIELD_ISNEW' class="zs-input" style="width:160px;height: 28px"
										 ng-model="gzvisitorreception.editRow.dfsj">
										</ag-Datebox>

										~

										<ag-Datebox id='fi_dfjssj' showcurday='gzvisitorreception.editRow.FIELD_ISNEW' class="zs-input" style="width:220px;height: 28px"
										 ng-model="gzvisitorreception.editRow.dfjssj">
										</ag-Datebox>
									</span>

									<span ng-show="false"><input hide-novalidate="true" alias="到访开始时间" required ng-model="gzvisitorreception.editRow.dfsj"
										 name="form_dfsj" /></span>

									<span ng-show="false"><input hide-novalidate="true" alias="到访结束时间" required ng-model="gzvisitorreception.editRow.dfjssj"
										 name="form_dfjssj" /></span>
								</td>
							</tr>
							<tr>
								<td class="text" width="20%">
									<font color="red">*</font>来访人员
								</td>
								<td class="left" width="30%" colspan="3">
									<!--<input type="text" ng-model="gzvisitorreception.editRow.lfry" class="zs-input" />-->
									<textarea type="text" ng-model="gzvisitorreception.editRow.lfry" class="zs-input" style="width:100%;height: 80px;" /></textarea>

									<span ng-show="false"><input hide-novalidate="true" alias="来访人员" required ng-model="gzvisitorreception.editRow.lfry"
										 name="form_lfry" /></span>
								</td>
							</tr>
							<tr>
								<td class="text" width="20%">
									<font color="red">*</font>来访人数
								</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzvisitorreception.editRow.lfrs" class="zs-input" />

									<span ng-show="false"><input hide-novalidate="true" alias="来访人数" required ng-model="gzvisitorreception.editRow.lfrs"
										 name="form_lfrs" /></span>
								</td>

								<td class="text" width="20%">
									<font color="red">*</font>是否需要安排住宿
								</td>
								<td class="left" width="30%"><span>
										<ag-Combobox style="width:220px;height:28px;" para="{	uDictionary:true,
                                        		dictionary:'p_yesorno'}"
										 ng-model="gzvisitorreception.editRow.sfxyapzs" text-Value="gzvisitorreception.editRow.sfxyapzsName" /></span>

									<span ng-show="false"><input hide-novalidate="true" alias="是否需要安排住宿" required ng-model="gzvisitorreception.editRow.sfxyapzs"
										 name="form_sfxyapzs" /></span>
									<!--<input type="text" ng-model="gzvisitorreception.editRow.sfxyapzs" class="zs-input" />-->
								</td>
							</tr>
							<tr>
								<td class="text" width="20%">
									<font color="red">*</font>男性人数
								</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzvisitorreception.editRow.nxrs" class="zs-input" />

									<span ng-show="false"><input hide-novalidate="true" alias="男性人数" required ng-model="gzvisitorreception.editRow.nxrs"
										 name="form_nxrs" /></span>
								</td>
								<!-- </tr>
          					<tr>-->
								<td class="text" width="20%">
									<font color="red">*</font>女性人数
								</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzvisitorreception.editRow.wxrs" class="zs-input" />

									<span ng-show="false"><input hide-novalidate="true" alias="女性人数" required ng-model="gzvisitorreception.editRow.wxrs"
										 name="form_wxrs" /></span>
								</td>
							</tr>

							<tr>
								<td class="text" width="20%">
									<font color="red">*</font>考察内容
								</td>
								<td class="left" width="30%" colspan="3">
									<!--<input type="text" ng-model="gzvisitorreserve.editRow.kcnr" class="zs-input" />-->
									<textarea type="text" ng-model="gzvisitorreception.editRow.kcnr" class="zs-input" style="width:100%;height: 80px;" /></textarea>

									<span ng-show="false"><input hide-novalidate="true" alias="考察内容" required ng-model="gzvisitorreception.editRow.kcnr"
										 name="form_kcnr" /></span>
								</td>
							</tr>

							<tr>
								<td class="text" width="20%">
									<font color="red">*</font>领队联系电话
								</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzvisitorreception.editRow.tel" class="zs-input" />

									<span ng-show="false"><input hide-novalidate="true" alias="领队联系电话" required ng-model="gzvisitorreception.editRow.tel"
										 name="form_tel" /></span>
								</td>
								<!-- </tr>
          					<tr>-->
								<td class="text" width="20%">
									<font color="red">*</font>创建人名称
								</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzvisitorreception.editRow.cjrmc" class="zs-input" />

									<span ng-show="false"><input hide-novalidate="true" alias="创建人名称" required ng-model="gzvisitorreception.editRow.cjrmc"
										 name="form_cjrmc" /></span>
								</td>
							</tr>
							<!--<tr>
                                <td class="text" width="20%">接待负责人ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzvisitorreception.editRow.jdfzrid" class="zs-input" />
                                </td>
                            </tr>-->
							<tr>
								<td class="text" width="20%">
									<font color="red">*</font>接待部门名称
								</td>
								<td class="left" width="30%"><span>
										<!--<input type="text" ng-model="gzvisitorreception.editRow.jdbmmc" class="zs-input" />-->
										<ag-Combobox class="zs-input" style="width:220px;height: 28px" fn='dptidEdit' para="{ uDictionary:true,
													dictionary:'p_department',
													pidField:'pid',
		                    						leafField:'leaf'}"
										 ng-model="gzvisitorreception.editRow.jdbmmc" text-Value="gzvisitorreception.editRow.jdbmmcName" />

									</span>
									<span ng-show="false"><input hide-novalidate="true" alias="接待部门名称" required ng-model="gzvisitorreception.editRow.jdbmmc"
										 name="form_jdbmmc" /></span>
								</td>

								<td class="text" width="20%">
									<font color="red">*</font>接待负责人名称
								</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzvisitorreception.editRow.jdfzrmc" class="zs-input" />

									<span ng-show="false"><input hide-novalidate="true" alias="接待负责人名称" required ng-model="gzvisitorreception.editRow.jdfzrmc"
										 name="form_jdfzrmc" /></span>
								</td>
								<!-- </tr>
          					<tr>-->

							</tr>
							<!--<tr>
                                <td class="text" width="20%">接待部门ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzvisitorreception.editRow.jdbmid" class="zs-input" />
                                </td>
                            </tr>-->
							<tr>
								<td class="text" width="20%">参与人</td>
								<td class="left" width="30%" colspan="3">
									<!--<input type="text" ng-model="gzvisitorreception.editRow.cyr" class="zs-input" />-->

									<textarea type="text" ng-model="gzvisitorreception.editRow.cyr" class="zs-input" style="width:100%;height: 80px;" /></textarea>
								</td>
							</tr>
							<!--<tr>
                                <td class="text" width="20%">预约ID号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzvisitorreception.editRow.yyid" class="zs-input" />
                                </td>
                            </tr>-->
						</tbody>
						<tfoot>
							<tr>
								<td colspan="4">
									<input type="button" name="ok" value="保存" class="zs-btn c-red" ng-click="formValidate(form) && save('gzvisitorreception', gzvisitorreception.editRow, closeWindow('edit'))" />
									<input type="button" name="ok" value="取消" class="zs-btn c-green" ng-click="closeWindow('edit')" />
								</td>
							</tr>
						</tfoot>
					</table>
				</form>
			</div>
		</div>

		<div ag-Window id="chooseYYGL" title="选择预约" width='760px' height='560px'>
			<div class="zs-form-tab ibox" data-ng-init="formInit('gzvisitorreserve', {
			        keyField:'id',
			        randomFields:['id'],
			        orderObject:{id:0}
			    }) && loadData('gzvisitorreserve');setConHei();">
				<div class="zs-nice-tab idTabs">
					<div class="tool item" style="margin-left:6px;">
						<span class="search-warpper">
							<i class="icon"></i>
							<input type="text" class="zs-input" placeholder="来访单位" ng-model="gzvisitorreserve.queryObject['lfdw']" />
						</span>
						<span class="search-warpper">
							<i class="icon"></i>
							<input type="text" class="zs-input" placeholder="来访人员" ng-model="gzvisitorreserve.queryObject['lfry']" />
						</span>
						<span class="search-warpper">
							<i class="icon"></i>
							<input type="text" class="zs-input" placeholder="接待部门名称" ng-model="gzvisitorreserve.queryObject['jdbmmc']" />
						</span>
					</div>
					<div class="operation item">
						<!--   <a class="ope-1" ng-click="loadData('gzvisitorreserve')"></a>
		                <a class="ope-2"></a>-->
						<input type="button" class="zs-btn orange" value="查询" ng-click="loadData('gzvisitorreserve')" />
					</div>
					<div class="switch">

					</div>
				</div>
				<div class="date-container">
					<div id="zpgwd">
						<div class="zs-data-table">
							<div class="container">
								<table>
									<thead>
										<tr>
											<th style="text-align: center" class="text" width="5%">
											</th>
											<th>来访单位</th>
											<th>来访人员</th>
											<th>接待部门名称</th>
										</tr>
									</thead>
									<tbody>
										<tr ng-repeat="r in gzvisitorreserve.datas">
											<td> <input type="checkbox" ng-click="selectRow('gzvisitorreserve',r,true);" ng-model="r.selected" /> </td>
											<!--  来访单位 -->
											<td>
												<a>
													<label ng-bind="r.lfdw"></label>
												</a>
											</td>
											<!--  来访人员 -->
											<td>
												<a>
													<label ng-bind="r.lfry"></label>
												</a>
											</td>
											<!--  接待部门名称 -->
											<td>
												<a>
													<label ng-bind="r.jdbmmcName"></label>
												</a>
											</td>
										</tr>
										<tr>
											<td class="center" colspan="4"><input type="button" class="zs-btn orange" value="选择" ng-click="chooseYYGL(gzvisitorreception.editRow,gzvisitorreserve.sRows[0],'chooseYYGL');" /></td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<div class="zs-pagination-box">
							<ag-Page fn='gzvisitorreserve'></ag-Page>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>